package com.sl.hx.shop.ui.home.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sl.hx.shop.R;
import com.sl.hx.shop.bean.CollectGoodsBean;

import java.util.List;

public class ShopHomeAdapter extends BaseQuickAdapter<CollectGoodsBean,BaseViewHolder> {

    public ShopHomeAdapter(@Nullable List<CollectGoodsBean> data) {
        super(R.layout.item_goods,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CollectGoodsBean item) {
        helper.setText(R.id.GoodsName,item.getName());
    }
}
